<?php

namespace App\Common\Log;

use Hyperf\Utils\ApplicationContext;

class Log
{
    /**
     * Describe:
     * @param string $name
     * @return \Psr\Log\LoggerInterface
     * @throws \Psr\Container\ContainerExceptionInterface
     * @throws \Psr\Container\NotFoundExceptionInterface
     * Created by crh at 2023/05/23 09:30
     */
    public static function get(string $name = 'app')
    {
        return ApplicationContext::getContainer()->get(\Hyperf\Logger\LoggerFactory::class)->get($name);
    }
}